package com.ty.day5;

/**
 * Created by IntelliJ IDEA.
 *
 * @author : txy
 * @create : 2023/11/20 15:12
 */
public class LambdaDemo  {
    public static void main(String[] args) {
        FuncInterface funcInterface=new FuncInterface() {
            @Override
            public int sum(int a, int b) {
                return a+b;
            }
        };
        FuncInterface funcInterface1=(a,b)->{return a+b;};
        CInterface cInterface = (name, word) -> {
            System.out.println(name+word);
        };
        cInterface.sayHello("唐宇","你好！");
    }
}
